package com.example.websocket.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("relation")
public class Relation {
    @TableId(value = "id",type = IdType.AUTO) //指定id类型为自增长
    Integer id;
    Integer userid;
    Integer friendid;

    public Relation(Integer id, Integer userid, Integer friendid) {
        this.id = id;
        this.userid = userid;
        this.friendid = friendid;
    }
}
